package zd.cornermemory.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by zhud on 2020/5/19.
 */
@Entity
public class RememberCj implements Comparable<RememberCj>{
    @Id(autoincrement = true)
    private Long id;

    private int singTime;//成绩 秒数

    private int rememberTime;//记忆时间  秒数
    
    private int errorTime;//罚时时间 秒数

    private Long date; //当前时间

    private int status;//0 无惩罚 1 +2  2 DNF

    private String code;//记忆编码 角

    private String EdgeCode;//记忆编码 棱

    private String etnote;//备注

    private int group;//分组

    private int type;//0 角  1棱  2全读


    @Generated(hash = 1114923185)
    public RememberCj(Long id, int singTime, int rememberTime, int errorTime,
            Long date, int status, String code, String EdgeCode, String etnote,
            int group, int type) {
        this.id = id;
        this.singTime = singTime;
        this.rememberTime = rememberTime;
        this.errorTime = errorTime;
        this.date = date;
        this.status = status;
        this.code = code;
        this.EdgeCode = EdgeCode;
        this.etnote = etnote;
        this.group = group;
        this.type = type;
    }

    @Generated(hash = 1253628547)
    public RememberCj() {
    }

    @Override
    public int compareTo(RememberCj o) {
        return singTime-o.getSingTime();
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getSingTime() {
        return this.singTime;
    }

    public void setSingTime(int singTime) {
        this.singTime = singTime;
    }

    public int getRememberTime() {
        return this.rememberTime;
    }

    public void setRememberTime(int rememberTime) {
        this.rememberTime = rememberTime;
    }

    public Long getDate() {
        return this.date;
    }

    public void setDate(Long date) {
        this.date = date;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getEtnote() {
        return this.etnote;
    }

    public void setEtnote(String etnote) {
        this.etnote = etnote;
    }

    public int getGroup() {
        return this.group;
    }

    public void setGroup(int group) {
        this.group = group;
    }

    public int getErrorTime() {
        return this.errorTime;
    }

    public void setErrorTime(int errorTime) {
        this.errorTime = errorTime;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getEdgeCode() {
        return this.EdgeCode;
    }

    public void setEdgeCode(String EdgeCode) {
        this.EdgeCode = EdgeCode;
    }

}
